/**
 *  This file contain all the function that support styles
 *  @version 1.0
 */

//==========================================//
// Set color in the reference tag
// @args ref, the reference tag
function setBg(ref,img){
	//salert(ref.style.backgroundImage);
	var urltext = 'url(../lib/images/'+img+')';
	ref.style.backgroundImage=urltext;
	//ref.bgColor="#D7D7D7";
}

//===========================================//
// Reset color of the reference tag
// @args ref, the reference tag
function resetBg(ref){
	//alert(ref.style);
	var index=ref.rowIndex;
	if(index%2==0){
		ref.bgColor="#C9D6F5";
	}else{
		ref.bgColor="#DEE2FE";
	}
}

function changeImage(ref, imagename ){
	ref.src='../lib/images/'+imagename;
}